package guicommon.controls.handlers;


public class MouseEventArgs extends EventArgs {

    private int x, y;

    public MouseEventArgs(int x, int y) {
        super("");
        this.x = x;
        this.y = y;
    }

    public MouseEventArgs(String str) {
        super(str);
        String[] strs = str.split("\\$");
        x = Integer.valueOf(strs[0]);
        y = Integer.valueOf(strs[1]);
    }

    @Override
    public String ToString() {
        return String.format("%s%c%d%c%d", MouseEventArgs.class.getName(), SEPARATOR, x, SEPARATOR, y);
    }
}
